#include "doublelinklist.h"

int main(int argc, char const *argv[])
{
    doublelinklist_head_tail* p=Createdoublelinklist();

    for(int i=0;i<6;i++){
        InsertIntodoublelinklist(p,i,i+1);
    }

    Showdoublinklist(p);

    InsertIntodoublelinklist(p,0,100);
    InsertIntodoublelinklist(p,5,99);
    InsertIntodoublelinklist(p,8,98);

    Showdoublinklist(p);

    DeletePostdoublinklist(p,0);
    DeletePostdoublinklist(p,6);

    Showdoublinklist(p);

    DeleteDatadoublinklist(p,99);

    Showdoublinklist(p);

    Changedoublelinklist(p,0,500);

    Showdoublinklist(p);

    printf("%d\n",Searchdoublelinklist(p,100));
    printf("%d\n",Searchdoublelinklist(p,98));

    Showdoublinklist(p);
    return 0;
}
